package com.unknown.wiki.manager;

import com.unknown.network.NetworkClient;
import com.unknown.wiki.app.Constant;
import com.unknown.wiki.repository.WikiAPI;

public class NetworkManager {
    private static WikiAPI wikiAPI;

    private NetworkManager() {
    }

    public static void init() {
        NetworkClient.init(Constant.baseURL);
        wikiAPI = NetworkClient.getRetrofit().create(WikiAPI.class);
    }

    public static WikiAPI getWikiAPI() {
        return wikiAPI;
    }
}
